package com.sikaryofficial.system.api;

import com.sikaryofficial.common.core.domain.R;
import com.sikaryofficial.system.api.config.HiSMKDigClientConfiguration;
import com.sikaryofficial.system.api.factory.InnerNetSystemFallbackFactory;
import com.sikaryofficial.system.api.model.LoginUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author : wuweihong
 * @desc : TODO  请填写你的功能描述
 * @date : 2024-11-29
 */

@FeignClient(name = "innerNetSystemService", url = "${server-url.hismk-dig-api-system}", fallbackFactory = InnerNetSystemFallbackFactory.class, configuration = HiSMKDigClientConfiguration.class)
public interface InnerNetSystemService {

	@GetMapping("/user/info/{username}")
	R<LoginUser> info(@PathVariable("username") String username);

	@GetMapping("/user/infos")
	R<List<LoginUser>> getInfos(@RequestParam("usernames") String usernames);

}
